import random
class Employee:
    name = "我是employee"
    tottle = 0             #统计实例化个数
    def __init__(self,tottle):
        self.tottle = tottle+1
    def sayHello(self):
        print("我是employee")
# 随机结果在0 - 30 之间
x = Employee(0)
for i in range(random.randint(0,29)):
    x = Employee(x.tottle)
print(x.tottle)